/* 添加文件浏览器样式 */

a {
    text-decoration: none; /* 移除下划线 */
}

.filExplorer{
    display: flex;
    width: 100%;
    /* overflow: hidden; */
    flex-direction: column;
}

#file-explorer{
    text-shadow: 3px 1px 2px green;
    text-decoration: underline;
}

.files-topbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: wheat;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* height: fit-content; */
    min-height: 250px;
    box-sizing: border-box;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    /* width: fit-content; */
}

#current-path{
    display: flex;
    color: white;
    background-color:#48bd4c;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration-line: underline;
    font-size: large;
    font-weight: bold;
    padding: 3px;
    text-shadow: 2px 1px 2px black;
}

.account {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    /* overflow: hidden; */
    min-width: min-content;
}

#account-buttons{
    display: flex;
    gap: 10px;
    align-items: start;
    flex-direction: column;
    padding: 8px;
    justify-content: center;

}

#account-buttons button{
    padding: 0 6px;
    font-size: large;
    font-weight: bold;
    width: fit-content;
    height: fit-content;
}



.toolsbar{
    width: fit-content;
    align-self: flex-start;    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quick-access {
    display: flex;
    gap: 5px;
    width: fit-content;
    padding: 5px 0;
    align-items: center;
    flex-grow: 1;
    flex-wrap: wrap;
}
  
.quick-access button {
    width: fit-content;
    height: auto;
    display: flex;
    padding: 0 2px;
    border-radius: 4px;
    background-color:cadetblue;
    font-size: large;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
    text-decoration-line: underline;
    text-shadow: 2px 1px 2px yellow;
}

.local-file button:hover,
.cloud-file button:hover,
.quick-access button:hover {
    background-color:slategrey;
}

.buttons-container-file {
    display: flex;
    flex-direction: row;
    width: fit-content;
    flex-grow: 1;
    flex-wrap: wrap;
    /* align-items: flex-start; */
    gap: 10px;
}  

.cloud-file button
{
    display: flex;
    width: fit-content;
    height: fit-content;
    color:#fce1e1;
    background-color: blueviolet;
    text-decoration-line: underline;
    text-shadow: 3px 1px 1px black;
}

/* .cloud-file #upload{
    max-width: fit-content;
} */

.local-file button{
    display: flex;
    width: fit-content;
    height: fit-content;
    background-color: #FFA500;  /* 橙色 */
    color: white;
    text-decoration-line: underline;
    text-shadow: 2px 1px 2px black;
}

.cloud-file button,
.local-file button{
    font-size: 18px;
    padding: 0 2px;
    align-content:start;
    white-space: nowrap;
}

.cloud-file button:disabled{
    cursor: not-allowed;
    opacity: 0.7;
}

.cloud-file, .local-file{
    display: flex;
    padding: 5px 0;
    align-items: center;
    gap: 5px;
    /* flex-grow: 1; */
    flex-wrap: wrap;
}

.fliestatusbar{
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: space-between; */
    width: 100%;
}

/* .filesrow{
    
} */

.file-list{
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    top: 250px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
} 

.file-empty-dir{
    position: fixed;
    display: flex;
    font-size: large;
    justify-content: center;
    align-content: center;
    margin-top: 30px;
    width: 100%;
    font-weight: bold;
    color: #7f8c8d;
    font-style: italic;
    left: 80px;
    text-decoration-line: underline;
}

#message-bar {
    display: flex;
    flex-direction: column;
}

#message-bar #loading-bar{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#loading-bar #toploading{
    text-decoration-line: underline;
    color:#1976d2;
    font-size: large;
    align-content: center;
    white-space: nowrap;
}

.filerow #loading,
.filerow .error {
    top: 50%;
    left: 500px;
    padding: 20px;
    text-align: center;
    z-index: 30;
    position: fixed;
    overflow: hidden;
    display: flex;
    width: 100%;
    font-weight: bold;
    text-decoration-line: underline;
    font-size: large;
}

#loading {
    color:tomato;
    font-style: oblique;
    text-decoration-style: wavy;
}

table{
    width: 100%;
    border-collapse:separate;
    table-layout: fixed;
    border-spacing: 7px 0;
}

#tabletoptop{
    position: sticky;
    top: 250px;
    left: 0; 
    width: 100%;
    border-collapse: separate;
    border-spacing: 7px 0;
    overflow-x: hidden;
    z-index: 20;
}

#tabletop tr{
    background-color:#2e7d32;
    color: whitesmoke;
    text-decoration-line: underline;
    text-shadow: 1px 1px 1px black;
    /* max-height: 50px; */
}
#tabletop th {
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
}  

.checkbox{
    width: 4%;
    max-width: fit-content;
    min-width: 80px;
    padding: 0 10px;
}

.name{
    width: 70%;
    min-width: 100px;
    word-break: break-word;
}
.type{
    width: 8%;
    min-width: 60px;
    /* max-width: fit-content; */
}
.size{
    width: 8%;
    min-width: 60px;
    /* max-width: fit-content; */
}

/* table .status {
    width: 5%;
    max-width: fit-content;
    min-width: 80px;
} */

table td {
    padding: 5px;
    text-align: left;
    border-bottom: 1px solid yellowgreen;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

table tr {
    /* display: table-row; */
    /* box-sizing: border-box; */
    height: fit-content;
}

tbody tr{
    cursor: pointer;
}

  /* 复选框样式 */
tbody input[type="checkbox"] {
    width: 18px;  /* 设置复选框宽度 */
    height: 18px; /* 保持宽高比例一致 */
    margin: 0;    /* 移除默认边距 */
    cursor: pointer;
    vertical-align: middle;
    accent-color: #396cd8; /* 设置选中时的颜色 */
}
 
  /* 选中行样式 */
tbody .selected-file {
    background-color:rgb(123, 198, 198);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}
  


#files-logout{
    background-color: royalblue;
    color: whitesmoke;
    text-decoration-line: underline;
    text-shadow: 3px 1px 2px black;    
}
#files-logout:hover{
    background-color: #133378;
}
#files-logout:disabled{
    text-decoration-line: line-through;
    cursor: not-allowed;
    opacity: 0.7;
}

#files-changepassword{
    background-color: yellow;
    color: white;
    text-shadow: 3px 1px 2px black;
    text-decoration-line: underline;
}
#files-changepassword:hover{
    background-color: rgb(105, 105, 0);
}
#files-changepassword:disabled{
    text-decoration-line: line-through;
    cursor: not-allowed;
    opacity: 0.7;
}
  /* 删除账户按钮样式 */
#delete-account {
    background-color: #f44336;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
    text-decoration-line: line-through;
    text-shadow: 3px 1px 3px yellow;
}
  
#delete-account:hover {
    background-color: #d32f2f;
}
  
#delete-account:active {
    background-color: #b71c1c;
}
  /* 上传状态样式 */



#loggingin-status-bar{
    background-color: slategray;
}  

#loggingin{
    border-radius: 4px;
    text-align: center;
    color: whitesmoke;
    text-decoration-line: underline;
    text-shadow: 2px 1px 1px rgb(8, 177, 244);
    font-style: oblique;
    align-content: center;
    display: flex;
    /* justify-content: center; */
}

#loggingin-status-bar
{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 5px;
    /* justify-content: flex-start;  */
}

#isuploadingbar{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: center;
    /* justify-content: flex-start; */
    gap: 5px;
}


.upload-status {
    text-align: center;
    color: teal;
    text-decoration-line: underline;
    text-shadow: 2px 1px 1px whitesmoke;
    font-style: oblique;
    align-content: center;
    /* display: flex; */
    width: 100%;
    justify-content: center;
}

.upload-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.upload-status.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

  /* 选中文件信息样式 */
.files-selected-info {
    background-color: #6166ab;
    color: #ffffff;
    text-decoration-line:underline;
    text-shadow: 1px 1px 1px yellow;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    font-size: small;
    height: fit-content;
}  

#delete-local-file:disabled,
#add-local-file:disabled,
#delete-cloud-file:disabled,
#upload:disabled, 
#download:disabled {
    background-color: #a5d6a7;
    cursor: not-allowed;
    opacity: 0.7;
}


